package com.ly.datacenter.database.pojo;

/**
 * function: 
 * @author watson email: watson.wu@hotmail.com
 * @date 2009-9-1
 */
public class FieldMetadata extends BaseFieldMetadata {

	private String displayName;
	private boolean searchable;
	private boolean displayable = true;
	private boolean editable = true;
	private String comment;
	private Object defaultValue;

	public FieldMetadata() {
		super();
	}

	public FieldMetadata(String columnName, String columnTypeName,
			int precision, boolean primaried, boolean nullable,
			boolean unsigned, boolean indexable, String displayName,
			boolean searchable, boolean displayable, boolean editable, String comment,
			Object defaultValue) {
		super(columnName, columnTypeName, precision, primaried, nullable,
				unsigned, indexable);
		this.displayName = displayName;
		this.searchable = searchable;
		this.displayable = displayable;
		this.editable = editable;
		this.comment = comment;
		this.defaultValue = defaultValue;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public boolean isSearchable() {
		return searchable;
	}

	public void setSearchable(boolean searchable) {
		this.searchable = searchable;
	}

	public boolean isDisplayable() {
		return displayable;
	}

	public void setDisplayable(boolean displayable) {
		this.displayable = displayable;
	}

	public boolean isEditable() {
		return editable;
	}

	public void setEditable(boolean editable) {
		this.editable = editable;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Object getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(Object defaultValue) {
		this.defaultValue = defaultValue;
	}

}
